<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>视频</title>
</head>
<style>
    *{
        padding: 0;
        margin: 0;
    }
    html{
        height: 100%;
    }
    body{
        height: 100%;
        width: 100%;
        position: relative;
    }
    #video{
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: absolute;
        top: 0;
        bottom: 0;
        margin: auto;
    }
</style>
<body>
<div id="container" style="height: 100%;">
    <video id="video" autoplay="autoplay" controls="controls" width="100%"></video>
</div>
</body>
</html>
<script type="text/javascript">
    var url =location.search.slice(5)
    console.log(url)
    document.getElementById("video").src=url
</script>